<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/view/main/stylesheet.jsp"%>
<link rel="stylesheet" type="text/css" href="${r'${baseurl}'}/styles/frameword/css/list.css" />
<script src="${r'${baseurl}'}/styles/frameword/js/list.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$(function() {
		var url = "/${localName}/";
		var columns = [ 
		<#list listFiledDatas as filedData>
		{
			field : '${filedData.simpleName}',
			title : '${filedData.comment}'
		},
		</#list>
		{
			field : 'operate',
			title : '操作',
			align : 'center',
			events : getEventsDefault(url),
			formatter : function(value, row, index) {
				return [ '<span class="BtnOfDetails pointer glyphicon glyphicon-list" style="margin-right:15px;">详情</span>',//
				'<span class="BtnOfUpdate pointer glyphicon glyphicon-edit" style="margin-right:15px;">编辑</span>',//
				'<span class="BtnOfDel pointer glyphicon glyphicon-remove" style="margin-right:15px;">删除</span>', ].join('');
			},
		} ];
		initListDefault(url, columns)
	})
</script>
</head>
<body class="container-fluid">
	<form class="bs-example bs-example-form" role="form" id="form1">
		<table class="table noline">
			<tbody>
				<#list searchFiledDatas as filedData>
				<#if (filedData_index+1)%2 == 1>
				<tr>
				</#if>
					<td>
					<#if filedData.filedType == "Enum">
						<div class="input-group">
							<span class="input-group-addon explain">${filedData.comment}</span>
							<wb:html wbCode="${filedData.enumSimpleName}" name="${filedData.simpleName}" nullvalue="true" type="select" />
						</div>
					<#else>
						<div class="input-group">
							<span class="input-group-addon explain">${filedData.comment}</span>
							<input type="text" name="${filedData.simpleName}" class="form-control">
						</div>
					</#if>
					</td>
				<#if (filedData_index+1)%2 == 0||(filedData_index+1)==(searchFiledDatas?size) >
				</tr>
				</#if>
				</#list>
				<tr>
					<td colspan="2" style="text-align: right;">
						<div class="btn-group">
							<button type="button" class="btn btn-success" id="add-button" data-url="/${localName}/add">
								<i class="glyphicon glyphicon-plus"></i>
								添加
							</button>
							<button type="button" class="btn btn-info" id="search-button">
								<i class="glyphicon glyphicon-search"></i>
								搜索
							</button>
						</div>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<table id="table1">
	</table>
</body>

</html>